package com.ytf.test.third;

/**
 * @author: YTF
 * @date: 2024/9/12 10:32
 * @version: 1.0
 * @description: 操作符优先级
 */
public class Precedence {
    public static void main(String[] args) {
        int i = 1, y = 2, z = 3;
        int a = i + y - 2 / 2 + z;
        int b = i + (y - 2) / (2 + z);
        System.out.println(" a=" + a + " b=" + b);
        /*output: a=5 b=1*/
    }
}
